package com.wolfking.demo.spi;

import com.wolfking.spi.SpiInterface;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * @author 赵伟伟(wolfking)
 * created on 2019-10-17 20:27
 */

@Component
@SpiInterface(code = "japan")
public class JapanHello implements HelloService {
    @Override
    public String sayHello(String name) {
        return "哇的西瓦 : " + name;
    }

    @Override
    public Nation getSpiCode() {
        return Nation.JAPAN;
    }
}
